package com.zh.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zh.domain.Model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @TableName bugs
 */
@TableName(value = "bugs")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(value = "Bug对象")
public class Bug extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("bugId")
    private Integer id;
    @ApiModelProperty("bug编码")
    private String code;
    @ApiModelProperty("项目id")
    private Integer proId;
    @ApiModelProperty("迭代id")
    private Integer iterId;
    @ApiModelProperty("里程碑id")
    private Integer mileId;
    @ApiModelProperty("需求id")
    private Integer reqId;
    @ApiModelProperty("任务id")
    private Integer taskId;
    @ApiModelProperty("bug标题")
    private String title;
    @ApiModelProperty("bug描述")
    private String description;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("bug负责人")
    private Integer ownerId;
    @ApiModelProperty("缺陷等级0 P0, 1 P1, 2 P2")
    private Integer priority;
    @ApiModelProperty("状态(0规划中1进行中2暂停中3已逾期4已完成5已废弃)")
    private Integer status;
    @ApiModelProperty("开始时间")
    private LocalDateTime startTime;
    @ApiModelProperty("结束时间")
    private LocalDateTime endTime;
    @ApiModelProperty("完成时间")
    private LocalDateTime completeTime;
}